<<<<<<< HEAD
 option = {

    tooltip : {
        trigger: 'item',
        formatter: "{a} <br/>{b} : {c} ({d}%)"
    },
    toolbox: {
        show: true,
        orient: 'vertical',
        left: 'right',
        top: 'center',
        feature: {
            dataView: {readOnly: false},
            restore: {},
            saveAsImage: {}
        }
    },
    series : [
        {
            name: '访问来源',
            type: 'pie',
            radius : '55%',
            center: ['40%', '50%'],
            data:[
                {value:335, name:'人事部'},
                {value:335, name:'建设部'},
                {value:335, name:'民政部'},
                {value:335, name:'统计部'},
                {value:1548, name:'技术部'}
            ],
            itemStyle: {
                emphasis: {
                    shadowBlur: 10,
                    shadowOffsetX: 0,
                    shadowColor: 'rgba(0, 0, 0, 0.5)'
                }
            }
        }
    ]
};

var mychart1 =echarts.init(document.getElementById('charts1'));
=======
 option = {

    tooltip : {
        trigger: 'item',
        formatter: "{a} <br/>{b} : {c} ({d}%)"
    },
    toolbox: {
        show: true,
        orient: 'vertical',
        left: 'right',
        top: 'center',
        feature: {
            dataView: {readOnly: false},
            restore: {},
            saveAsImage: {}
        }
    },
    series : [
        {
            name: '访问来源',
            type: 'pie',
            radius : '55%',
            center: ['40%', '50%'],
            data:[
                {value:335, name:'人事部'},
                {value:335, name:'建设部'},
                {value:335, name:'民政部'},
                {value:335, name:'统计部'},
                {value:1548, name:'技术部'}
            ],
            itemStyle: {
                emphasis: {
                    shadowBlur: 10,
                    shadowOffsetX: 0,
                    shadowColor: 'rgba(0, 0, 0, 0.5)'
                }
            }
        }
    ]
};

var mychart1 =echarts.init(document.getElementById('charts1'));
>>>>>>> 64023929a954491135e98eced71561cf8107da2a
mychart1.setOption(option);